// @ts-ignore
/* eslint-disable */
import request from '@/utils/request'

/** 批量新增标签 POST /api/tag/add */
export async function addBatchTagsUsingPost(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.addBatchTagsUsingPOSTParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>('/api/tag/add', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  })
}

/** 批量删除标签 DELETE /api/tag/batch/delete */
export async function deleteTagsByIdsUsingDelete(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.deleteTagsByIdsUsingDELETEParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>('/api/tag/batch/delete', {
    method: 'DELETE',
    params: {
      ...params,
    },
    ...(options || {}),
  })
}

/** 根据图片id查询对应的所有标签 GET /api/tag/getTagsByPicId */
export async function getTagsByPictureIdUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getTagsByPictureIdUsingGETParams,
  options?: { [key: string]: any }
) {
  const { id: param0, ...queryParams } = params
  return request<API.BaseResponseListTagVo_>('/api/tag/getTagsByPicId', {
    method: 'GET',
    params: { ...queryParams },
    ...(options || {}),
  })
}

/** 查询所有标签 GET /api/tag/list */
export async function listTagsUsingGet(options?: { [key: string]: any }) {
  return request<API.BaseResponseListTagVo_>('/api/tag/list', {
    method: 'GET',
    ...(options || {}),
  })
}
